package io.renren.modules.canteens.dao;

import io.renren.common.dao.BaseDao;
import io.renren.modules.canteens.dto.SupplierFoodDTO;
import io.renren.modules.canteens.entity.SupplierFoodEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 供应商_食材表
 *
 * @author 翟文闯 619556390@QQ.com
 * @since 1.0.0 2019-11-22
 */
@Mapper
public interface SupplierFoodDao extends BaseDao<SupplierFoodEntity> {
    @Select("SELECT * from canteens_supplier_food where supplier_id = '${supplierId}' and food_id = '${foodId}' ")
    SupplierFoodDTO getSupplierFood(Long supplierId, Long foodId);
}